package com.example.cuibo.elementslearning.dummy;

import java.util.HashMap;
import java.util.List;

/**
 * Created by cuibo on 2017/11/1.
 */

public class Demo_Rev集合翻转 {

    public  static<E> void reList(List<E> list){
        for (int i = 0; i < list.size() / 2; i++) {
            E temp = list.get(0);
            list.set(0,list.get(list.size() - 1));
        }


        HashMap<Person, String> hm = new HashMap<>();
        hm.put(new Person("1",12),"5");
    }
}
